<p class="Paragraph"><help:paragraphinfo state="U" number="2"/>Right-aligns a string within a string variable, or copies a user-defined variable type into another.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="4" xmlns:help="http://openoffice.org/2000/help"/>RSet Text As String = Text or RSet Variable1 = Variable2</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="6" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Text:</span> Any string variable.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="7" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Text</span>: String that you want to right-align in the string variable.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="8" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Variable1:</span> User-defined variable that is the target for the copied variable.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Variable2:</span> User-defined variable that you want to copy to another variable.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/>If the string is shorter than the string variable, <span class="T1">RSet</span> aligns the string to the right within the string variable. Any remaining characters in the string variable are replaced with spaces. If the string is longer than the string variable, characters exceeding the length of the variable are truncated, and only the remaining characters are right-aligned within the string variable.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="11" xmlns:help="http://openoffice.org/2000/help"/>You can also use the <span class="T1">RSet statement</span> to assign variables of one user-defined type to another.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="12" xmlns:help="http://openoffice.org/2000/help"/>The following example uses the <span class="T1">RSet</span> and <span class="T1">LSet</span> statements to modify the left and right alignment of a string.</p>